<%@ page contentType="text/html" %>
<%@ page pageEncoding="utf-8" %>

<html>
  <head>
    <title>My JSP 'show.jsp' starting page</title>
  </head>
  
  <body>
    This is my JSP page. <br>
    <%
    	String name=(String)session.getAttribute("loginName");
    	if(name==null || name.length()==0){
    		response.sendRedirect("login.jsp");
    		return;
    	}else{	%>
    		<img alt="这是一幅图片" scr="jetty.png">
    <% 	}
     %>
  </body>
</html>

